package designPattern.AbstractFactoty;

/**
 * @author ldy
 * @data 2022/11/9
 * @description IAnimalFactory抽象工厂的实现类
 * ConcreteFactory：创建抽象工厂类的两个实现类，WhiteAnimalFactory和BlackAnimalFactory
 */
public class WhiteAnimalFactory implements IAnimalFactory {

    public ICat createCat() {
        return new WhiteCat();
    }

    public IDog createDog() {
        return new WhiteDog();
    }

}
